import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { HomeComponent } from './home.component';
import { HomeResolverService } from './home.resolve.service';

const routes: Routes = [
    {
    path:'home',
    component:HomeComponent,
    data:{title:"发现"},
    resolve:{homeDatas:HomeResolverService}
  }
];

@NgModule({
  
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule],
  providers:[HomeResolverService]

})
export class HomeRoutingModule { }
